11. Quiz: Facebook Friends (7-5)
Directions:
Create an object called facebookProfile
. The object should have 3 properties:
- your
name
- the number of
friends
you have, and - an array of
messages
you've posted (as strings)
The object should also have 4 methods:
postMessage(message)
- adds a new message string to the arraydeleteMessage(index)
- removes the message corresponding to the index providedaddFriend()
- increases the friend count by 1removeFriend()
- decreases the friend count by 1
Your Code:
Start Quiz:
/*
* Programming Quiz: Facebook Friends (7-5)
*/
// your code goes here
INSTRUCTOR NOTE:
Have questions? Head to Knowledge for discussion with the Udacity Community.